import { ApiProperty } from '@nestjs/swagger';
import { IsOptional } from 'class-validator';
import { Role } from '@common/role';
import { Gender } from '../entities/user.entity';
export class UserUpdateDto {
    /**
     * 用户名
     */
    @ApiProperty({
        description: '用户名',
        required: false,
    })
    @IsOptional()
    username?: string;
    /**
     * 密码
     */
    @ApiProperty({
        description: '密码',
        required: false,
    })
    @IsOptional()
    password?: string;
    /**
     * 性别
     */
    @ApiProperty({
        description: '性别',
        required: false,
    })
    @IsOptional()
    gender?: Gender;
    /**
     * 手机号
     */
    @ApiProperty({
        description: '手机号',
        required: false,
    })
    @IsOptional()
    phone?: string;
    /**
     * 昵称
     */
    @ApiProperty({
        description: '昵称',
        required: false,
    })
    @IsOptional()
    nickname?: string;
    /**
     * 角色
     */
    @ApiProperty({
        description: '角色',
        required: false,
    })
    @IsOptional()
    roles?: Role[];
}
